<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>dplayer</title>
    <script src="./js/hls.min.js"></script>
    <script src="./js/DPlayer.min.js"></script>
</head>

<body>
    <div id="dplayer"></div>
    <script>
        const dp = new DPlayer({
            container: document.getElementById('dplayer'),
            video: {
                url: 'https://uat-file-hls.trialos.com/resources/test/test.m3u8',
                type: 'hls',
            },
            pluginOptions: {
                hls: {
                    // hls config
                },
            },
        });
        console.log(dp.plugins.hls); // Hls instance
    </script>
</body>

</html>